#!/usr/bin/env node
//客户端
const http=require('http'),
      log=console.log,
      url=require('url');

const x=process.argv[2],
      y=process.argv[3];

//const addr='http://localhost:8080/add',
const addr=`http:\/\/localhost:8080/add?x=${x}&y=${y}`;

http.get(addr,(res)=>{
  res.pipe(process.stdout);
})

